﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucRelatedProduct.ascx.cs"
    Inherits="TTMarketing.UserControl.SanPham.ucRelatedProduct" %>
<asp:ObjectDataSource ID="odsRelatedProduct" runat="server" SelectMethod="getTopOrther"
    TypeName="TTBusiness.ClassDB.clsBSProduct">
    <SelectParameters>
        <asp:QueryStringParameter Name="id" QueryStringField="id" Type="Int32" />
        <asp:Parameter DefaultValue="10" Name="top" Type="Int32" />
        <asp:Parameter DefaultValue="true" Name="status" Type="Boolean" />
        <asp:Parameter DefaultValue="true" Name="visible" Type="Boolean" />
    </SelectParameters>
</asp:ObjectDataSource>
<div id="com-left-relate">
    <div id="com-left-title">
        Các sản phẩm liên quan</div>
    <div id="com-left-box">
        <asp:DataList ID="DataList1" runat="server" DataSourceID="odsRelatedProduct" RepeatColumns="5">
            <ItemStyle VerticalAlign="Top" />
            <ItemTemplate>
                <div id="com-left-box-customer">
                    <div id="com-left-box-customer-img">
                        <a href='<%# "san-pham.aspx?id="+Eval("ID") %>'>
                            <asp:Image ID="imgProduct" runat="server" 
                            AlternateText='<%# Eval("Name") %>' ImageUrl='<%# "~/Image/Upload/"+Eval("Image") %>'
                                ToolTip='<%# Eval("Summary") %>' Height="100px" Width="90px" /></a>
                    </div>
                    <div id="com-left-box-customer-title">
                        <asp:Label ID="lbProductName" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                        &nbsp;:
                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("SeriNumber") %>'></asp:Label>
                    </div>
                </div>
            </ItemTemplate>
        </asp:DataList>
    </div>
</div>
